<!DOCTYPE html>
<html>
	<head>
		<title>系统公告表-详情</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<!-- 所有的 css js 资源 -->
		<link rel="stylesheet" href="https://unpkg.com/element-ui@2.13.0/lib/theme-chalk/index.css">
		<link rel="stylesheet" href="../../static/sa.css"> 
		<script src="https://unpkg.com/vue@2.6.10/dist/vue.min.js"></script>
		<script src="https://unpkg.com/element-ui@2.13.0/lib/index.js"></script>
		<script src="https://unpkg.com/jquery@3.4.1/dist/jquery.js"></script>
		<script src="https://www.layuicdn.com/layer-v3.1.1/layer.js"></script>
		<script src="../../static/sa.js"></script>
		<style type="text/css">
			.c-panel .c-label{width: 8em;}
			
			/* 富文本样式 */
			.content-box{width: 700px; min-height: 100px; border: 1px #ddd solid; padding: 1em; transition: all 0.2s;overflow: hidden;}
			.content-box img{max-width: 200px !important;}
			
		</style>
	</head>
	<body>
		<div class="vue-box sbot" style="display: none;" :style="'display: block;'">
			<!-- ------- 内容部分 ------- -->
			<div class="s-body">
				<div class="c-panel">
					<el-form size="mini" v-if="m">
						<div class="c-item br">
							<label class="c-label">id号：</label>
							<span>{{m.id}}</span>
						</div>
						<div class="c-item br">
							<label class="c-label">标题：</label>
							<span>{{m.title}}</span>
						</div>
						<div class="c-item br">
							<label class="c-label" style="float: left;">内容：</label>
							<div class="content-box" style="float: left;">
								<div v-html="m.content"></div>
							</div>
						</div>
						<div style="clear: both;"></div>
						<!-- <div class="c-item br">
							<label class="c-label" style="vertical-align: top;">封面：</label>
							<img :src="m.cover" style="width: 3em; height: 3em; cursor: pointer;" 
								@click="sa.showImage(m.cover, '400px', '400px')" v-if="m.cover">
							<span v-else>无</span>
						</div> -->
						<div class="c-item br">
							<label class="c-label">点击数量：</label>
							<span>{{m.see_count}}</span>
						</div>
						<!-- <div class="c-item br">
							<label class="c-label">分类id：</label>
							<span v-if="m.type == 1">普通公告</span>
							<span v-if="m.type == 2">首页公告</span>
							<span v-if="m.type == 3">操作手册</span>
							<span v-if="m.type == 9">特殊公告</span>
						</div> -->
						<div class="c-item br">
							<label class="c-label">排序索引：</label>
							<span>{{m.sort}}</span>
						</div>
						<div class="c-item br">
							<label class="c-label">发布日期：</label>
							<span>{{sa.forDate(m.create_time, 2)}}</span>
						</div>
					</el-form>
				</div>
			</div>
			<!-- ------- 底部按钮 ------- -->
			<div class="s-foot">
				<el-button size="mini" type="success" @click="sa.closeCurrIframe()">确定</el-button>
				<el-button size="mini" @click="sa.closeCurrIframe()">取消</el-button>
			</div>
		</div>
		<script>
			var app = new Vue({
				el: '.vue-box',
				data: {
					id: sa.p('id', 0),	// 获取数据ID 
					m: null
				},
				methods: {
				},
				mounted: function() {
					sa.ajax('/SysNotice/getById?id=' + this.id, function(res) {
						this.m = res.data;
					}.bind(this))
				}
			})
		</script>
	</body>
</html>
